package com.fangsheng;

import com.fangsheng.service.UserServiceImpl;
import com.spring.FangshengApplicationContext;
import com.spring.UserService;

/**
 * @创建人: 放生
 * @创建时间: 2021/7/16
 * @描述:
 */
public class Test {
    public static void main(String[] args) {

        FangshengApplicationContext fangshengApplicationContext = new FangshengApplicationContext(AppConfig.class);

        UserService userService = (UserService) fangshengApplicationContext.getBean("userService");
//        System.out.println(fangshengApplicationContext.getBean("userService"));
//        System.out.println(fangshengApplicationContext.getBean("userService"));
//        System.out.println(fangshengApplicationContext.getBean("userService"));
        userService.test();
    }



}
